import request from '@/utils/request'

// 登录接口
export const Login = data => {
  return request({
    url: '/staffUser/poststaffUserLogin',
    method: 'post',
    data,
  })
}

// 获取登录用户信息
export const UserInfo = params => {
  return request({
    url: '/staffUser/getStaffUserInfo?rnd=' + Math.random(),
    method: 'get',
    params,
  })
}
